<?php

function pwdToSecret($password) {
    return md5($password . C('SECRET_KEY'));
}
function pagestring($count, $pagesize, $wap = false) {
    Vendor("Pager");
    $p = new Pager($count, $pagesize, 'page');

    if ($wap) {
        return array($pagesize, $p->offset, $p->genWap(), $p->pageNo);
    }
    return array($pagesize, $p->offset, $p->genBasic(), $p->pageNo);
}

?>
